import store from "@/store"
import pkgabc from "@/store/modules/abc";
import { treeToArr, arrToTree } from "../util/array/array.service";


let a = [{
    a: '1', children: [{
        c: '2', d: '3', children: [{
            f: '4',
            g: '5',
            children: [{
                i: '6'
            }]
        }]

    }
    ]
}, {
    jj: 'cc',
    children: [{
        kk: '3123'
    }]
}
]


//console.log(treeToArr(a, { deepMapName: 'deep', parentMapName: 'parent', cb: () => { console.log(1) } }))


//权限指令
const acl = {
    created(el: any, binding: any, vnode: any, prevVnode: any) {
        //console.log(el, binding, vnode,prevVnode)
        return false
    }, // 新增
    beforeMount() { },
    mounted() { },
    beforeUpdate() { }, // 新增
    updated() { },
    beforeUnmount() { }, // 新增
    unmounted() { }
}
//权限if
const aclIf = {
    created() {
    }, // 新增
    beforeMount() {

    },
    mounted(el: any, binding: any, vnode: any, prevVnode: any) { el.parentNode.removeChild(el) },
    beforeUpdate() { }, // 新增
    updated() { },
    beforeUnmount() { }, // 新增
    unmounted() { }
}


export { acl, aclIf }









